<?php
/**
 * Created by PhpStorm.
 * User: longyu
 * Date: 2016/6/3
 * Time: 10:41
 */
$id=$_GET["id"];
$uid=$_GET["uid"];
require "redis.php";
$redis->sAdd("user:$uid:following",$id);
$redis->sAdd("user:$id:followers",$uid);
header("location:list.php");
?>